/*
 * Copyright (c) Family. All Rights Reserved
 */

package com.driving.exam;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.driving.exam.spider.CoachSpider;
import com.driving.exam.spider.SchoolSpider;

import lombok.RequiredArgsConstructor;

/**
 * @author SAGITTAR
 */
@RequiredArgsConstructor
@SpringBootApplication
public class DrivingExamApplication implements CommandLineRunner {

    private final SchoolSpider schoolSpider;

    private final CoachSpider coachSpider;

    /**
     * 这个方法为任务调度入口，需要再加进来，不需要就删掉或注释
     *
     * @param args 启动参数
     */
    @Override
    public void run(String... args) throws Exception {
        // schoolSpider.execute();
        // coachSpider.execute();
    }

    public static void main(String[] args) {
        SpringApplication.run(DrivingExamApplication.class);
    }
}
